LEADTOOLS Medical (Leadtools.Dicom assembly)

SetBinaryValue(DicomElement,Byte[],UInt32) Method

Show in webframe







An item in the Data Set.
Pointer to a buffer that contains the binary value to set.
Value that represents the length, in bytes, of the buffer you allocated.
Sets the binary value of an element.
Syntax
public bool SetBinaryValue( 
   DicomElement element,
   byte[] value,
   uint length
)
'Declaration
 
Public Overloads Function SetBinaryValue( _
   ByVal element As DicomElement, _
   ByVal value() As Byte, _
   ByVal length As UInteger _
) As Boolean
'Usage
 
Dim instance As DicomDataSet
Dim element As DicomElement
Dim value() As Byte
Dim length As UInteger
Dim value As Boolean
 
value = instance.SetBinaryValue(element, value, length)
public bool SetBinaryValue( 
   DicomElement element,
   byte[] value,
   uint length
)

            

            
 function Leadtools.Dicom.DicomDataSet.SetBinaryValue(DicomElement,Byte[],UInt32)( 
   element ,
   value ,
   length 
)
public:
bool SetBinaryValue( 
   DicomElement^ element,
   array<byte>^ value,
   uint length
) 

Parameters

element
An item in the Data Set.
value
Pointer to a buffer that contains the binary value to set.
length
Value that represents the length, in bytes, of the buffer you allocated.

Return Value

true if the binary value of the Data Element was set successfully. false if could not set the binary value of the Data Element.
Remarks
This method overwrites the value of the Data Element. The Value Length of the Data Element is then equal to length.
Example
For an example, refer to SetIntValue(DicomElement,IntPtr,Int32).
Requirements

Target Platforms

See Also

Reference

DicomDataSet Class
DicomDataSet Members
Overload List
SetValue Method
SetBinaryValue(DicomElement,IntPtr,Int32) Method
SetStringValue(DicomElement,String,DicomCharacterSetType) Method
SetStringValue(DicomElement,String[],DicomCharacterSetType) Method
SetStringValue(DicomElement,String) Method
SetStringValue(DicomElement,String[]) Method
SetStringValuePtr(DicomElement,IntPtr,Int32) Method
SetStringValuePtr(DicomElement,IntPtr,UInt32,DicomCharacterSetType) Method
SetShortValue(DicomElement,Int16[],Int32) Method
SetIntValue(DicomElement,Int32[],Int32) Method
SetFloatValue(DicomElement,Single[],Int32) Method
SetDoubleValue(DicomElement,Double[],Int32) Method
SetAgeValue Method
SetDateValue(DicomElement,DicomDateValue[]) Method
SetTimeValue(DicomElement,DicomTimeValue[]) Method
SetDateTimeValue(DicomElement,DicomDateTimeValue[]) Method
SetConvertValue(DicomElement,String,Int32) Method

 

 


Products | Support | Contact Us | Copyright Notices
© 2006-2014 All Rights Reserved. LEAD Technologies, Inc.

Leadtools.Dicom requires a Medical toolkit server license and unlock key. For more information, refer to: Imaging Pro/Document/Medical Features